﻿using System;
using System.Collections.Generic;
using System.Text;
using NLBS.Entity;

namespace NLBS.Views
{
    /// <summary>
    /// 评论事件参数类
    /// </summary>
    public class CommentEventArgs : EventArgs
    {
        public CommentEventArgs() { }

        public CommentEventArgs(Comment comm)
        {
            this._comm = comm;
        }

        private Comment _comm;
        /// <summary>
        /// 当前评论
        /// </summary>
        public Comment Comm
        {
            get
            {
                return _comm;
            }
        }
    }
    /// <summary>
    /// 包含评论更新时的事件数据
    /// </summary>
    public class CommentUpdateEventArgs : CommentEventArgs
    {
        public CommentUpdateEventArgs(Comment comm)
            : base(comm)
        {
        }
    }

    /// <summary>
    /// 包含评论删除时的事件数据
    /// </summary>
    public class CommentDeleteEventArgs : CommentEventArgs
    {
        public CommentDeleteEventArgs(Comment comm)
            : base(comm)
        {
        }
    }
    /// <summary>
    /// 包含评论选中时的事件数据
    /// </summary>
    public class CommentSelectEventArgs : CommentEventArgs
    {
        public CommentSelectEventArgs(Comment comm)
            : base(comm)
        {
        }
    }
    /// <summary>
    /// 包含评论贴加插入时的事件数据
    /// </summary>
    public class CommentInsertEventArgs : CommentEventArgs
    {
        public CommentInsertEventArgs(Comment comm)
            : base(comm)
        {
        }
    }
}
